#include <iostream>
using namespace std;

class Sample {
    int i;

  public:
    Sample();
    void Display();
    ~Sample();
};

Sample::Sample() {
    cout << "constructor"
         << ",";
    i = 0;
}

void Sample::Display() { cout << "i=" << i << ","; }

Sample::~Sample() { cout << "destructor" << endl; }

int main() {
    Sample a;
    a.Display();

    return 0;
}
